<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>运城市安全生产隐患排查治理信息系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css"/>
	<script src="<%=basePath%>/js/js.js" type="text/javascript"></script>
  </head>
  
 <body>
<div id="allbody">
	<div class="head">
		<iframe src="<%=basePath%>/head.jsp" width="1160" height="182" scrolling="no" frameborder="0" ></iframe>
	</div>
	<div class="con">
		<div class="left">
			<div class="left_info">
				<iframe src="<%=basePath%>/left_info.jsp" width="244" height="250" id="iframeleft_top"  onLoad="iFrameHeight()"  scrolling="no" frameborder="0" ></iframe>
			</div>
			<div class="left_link">
				<iframe src="<%=basePath%>/left_link_notice.jsp" width="244" height="200" id="iframeleft_link"  onLoad="iFrameHeight2()" scrolling="no" frameborder="0" ></iframe>
			</div>
		</div>
		<div class="right">
			<div class="right_map"><a href="<%=basePath%>/corp/index.action">首页</a> &gt; <span><a href="<%=basePath%>/oa/oa_noticeInList.action">系统通知</a></span></div>
			<div class="right_list">
				<form name="sform" action="<%=basePath%>/oa/oa_noticeInList.action" method="post">
				<table border="0" cellpadding="0" cellspacing="0" align="center" class="corplist">
					<tr class="tit">
						
						<th  align="right"><li>
								查询： <select name="isRead" id="isRead">
									<option <s:if test="isRead==3">selected="selected"</s:if> value="3" >全部</option>
									<option <s:if test="isRead==0">selected="selected"</s:if> value="0">未读</option>
									<option <s:if test="isRead==1">selected="selected"</s:if> value="1">已读</option>
								</select>
								<input name="keyWord" type="text" class="input_info" value="${keyWord }"/>
							</li></th>
						<th width="90" ><li>
								<a href="javascript:document.sform.submit();">查询</a>
						</li></th>
						<!-- 
							<th width="90"><li>
								<a href="window.location.href=''">删除</a>
							</li></th> -->
						<th width="90"><li>
								<a href="javascript: window.location.href='<%=basePath%>/oa/oa_noticeInList.action';">刷新</a>
							</li></th>
					</tr>
				</table>
				</form>
				<table border="0" cellpadding="0" cellspacing="0" align="center" class="infolist">
					<tr class="cz">
						<th width="10%">序号</th>
						<th width="50"><img src="<%=basePath%>/images/img_04.gif" /></th>
						
						<th width="20%">标题</th>
			    		<th width="10%">发送者</th>
			    		<th width="10%">发送单位</th>
			    		<th width="20%">发送时间</th>
			    		<th width="10%">紧急程度</th> 		
			    		<th width="10%">是否已读</th> 
			    		
					</tr>
					<s:if test="%{inNoitceList.size>0}">
			    		<s:iterator value="inNoitceList" id="notice" status="x">
					  		<tr class="cz">
								<td >${x.index+1+(page.num-1)*page.size}</td>			    		
					    		<td><a href="<%=basePath%>/oa/oa_noticeInShow.action?id=${notice.id }&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&str_num=${page.num }&str_size=${page.size}"><img src="<%=basePath%>/images/img_04.gif" /></a></td>
					    		<td ><a href="<%=basePath%>/oa/oa_noticeInShow.action?id=${notice.id }&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&str_num=${page.num }&str_size=${page.size}">${notice.tbOaNotice.noticeTitle }</a></td>			    						    		
					    		<td >${notice.tbOaNotice.tbUser.userRealName }</td>				    		
					    		<td >${notice.tbOaNotice.tbUser.tbUserUnit.deptName }</td>	
					    		<!-- 			    		
					    		<td >${notice.tbOaNotice.tbUser.tbUserDept.deptName }</td>				    		
					    		 -->
					    		<td ><s:date name="#notice.tbOaNotice.noticeTime" format="yyyy-MM-dd HH:mm"/> </td>					    		
					    		<td >${notice.tbOaNotice.isExigence==0?'普通':'<font color="red">紧急</font>' } </td>				    		
					    		<td >${notice.isRead==0?'<font color="red">未读</font>':'<font color="green">已读</font>' }</td>					    		
							</tr>
					  		
					  	</s:iterator>						  
					</s:if>
					<s:else>
					 	<tr>
							<td colspan="8" height="40" style="border:none;text-align:center">
							  	没有数据
							</td>
						</tr>
					</s:else>
					
					
					<!--<tr>
						<td colspan="3" style="border:none;text-align:center"> 没有图片 </td>
					</tr>-->
				</table>
				<div class="page">
					<jsp:include flush="true" page="../share/fenye.jsp">
			       		<jsp:param name="url4page" value="/oa/oa_noticeInList.action" />
		         	</jsp:include>
				</div>  
			</div>
		</div>
	</div>
	<div class="foot">
		<iframe src="<%=basePath%>/foot.html" width="1160" height="89" scrolling="no" frameborder="0" ></iframe>
	</div>
</div>
<s:if test="%{tip!=null}">
	<script>
		alert('${tip}');
	</script>
</s:if>
</body>
</html>
